package com.haiyi.software.app.basic;

import com.haiyi.software.app.R;
import com.haiyi.software.ui.controller.WatingProgressDialog;
import com.haiyi.software.xmpp.event.XMPPConnectionStateEvent;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;

public abstract class FragmentBasic extends Fragment implements
		XMPPConnectionStateEvent {

	protected String str_server = null;

	protected WatingProgressDialog watingDialog;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {

		str_server = this.getResources().getString(R.string.URL);

		watingDialog = new WatingProgressDialog(getActivity(),
				R.style.WatingProgressDialog);

		return super.onCreateView(inflater, container, savedInstanceState);
	}

	protected abstract void requestFinish();

	protected abstract void requestNetworkData();

	protected abstract void requestError();

}
